export const formatAmount = (value: number) => `${value >= 0 ? '+' : ''}¥${Math.abs(value).toFixed(2)}`;

export const formatTime = (dateStr: string) => {
  const date = new Date(dateStr);
  return date.toLocaleDateString('zh-CN', {
    year: 'numeric',
    month: '2-digit',
    day: '2-digit',
  });
};
